package com.codemobiles.droidslator.dicts;

public class ThaiDict implements DictSpec {

  @Override
  public String translate(String inWord, String toLang) {
    String res = "";
    if (toLang.equalsIgnoreCase("ENGLISH")) {
      DBAdapter dbAdapter = new DBAdapter();
      res = dbAdapter.searchTEV1(inWord);
      if (res.equalsIgnoreCase("")){
        res = dbAdapter.searchTEV2(inWord);
      }
    }
    return res;
  }

}
